<template>
  <div class="gender-ratio" style="width: 250px; height: 150px;">
    <!-- 性别比例标题 -->
    <div class="title" style="color: #fff; font-size: 14px; font-weight: bold; margin-bottom: 10px;">
      性别比例
    </div>
    
    <div class="gender-container" style="display: flex; justify-content: space-between;">
      <!-- 男性部分 -->
      <div class="gender-item" style="display: flex; align-items: center;">
        <!-- 男性图标 -->
        <div class="male-icon" style="width: 30px; height: 50px; background-color: #38bdf8; border-radius: 50%; position: relative; margin-right: 10px;">
          <div style="position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; background-color: #38bdf8; border-radius: 50%;"></div>
          <div style="position: absolute; top: 25px; left: 5px; width: 20px; height: 10px; background-color: #38bdf8;"></div>
          <div style="position: absolute; top: 35px; left: 5px; width: 20px; height: 15px; background-color: #38bdf8;"></div>
        </div>
        
        <!-- 男性文字 -->
        <div class="gender-text" style="color: #fff; font-size: 12px;">
          <div style="font-weight: bold;">男性</div>
          <div style="color: #38bdf8; font-weight: bold;">51%</div>
        </div>
      </div>
      
      <!-- 女性部分 -->
      <div class="gender-item" style="display: flex; align-items: center;">
        <!-- 女性图标 -->
        <div class="female-icon" style="width: 30px; height: 50px; background-color: #ff6b6b; border-radius: 50%; position: relative; margin-right: 10px;">
          <div style="position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; background-color: #ff6b6b; border-radius: 50%;"></div>
          <div style="position: absolute; top: 25px; left: 5px; width: 20px; height: 10px; background-color: #ff6b6b;"></div>
          <div style="position: absolute; top: 35px; left: 5px; width: 20px; height: 15px; background-color: #ff6b6b;"></div>
          <div style="position: absolute; top: 35px; left: 5px; width: 20px; height: 15px; background-color: #ff6b6b; transform: rotate(15deg);"></div>
        </div>
        
        <!-- 女性文字 -->
        <div class="gender-text" style="color: #fff; font-size: 12px;">
          <div style="font-weight: bold;">女性</div>
          <div style="color: #ff6b6b; font-weight: bold;">49%</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NanNv'
}
</script>

<style scoped>
.gender-ratio {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: #0f2035;
  border-radius: 8px;
  box-sizing: border-box;
}

.gender-container {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.gender-item {
  display: flex;
  align-items: center;
}

.male-icon, .female-icon {
  width: 30px;
  height: 50px;
  background-color: #38bdf8;
  border-radius: 50%;
  position: relative;
}

.female-icon {
  background-color: #ff6b6b;
}

.gender-text {
  color: #fff;
  font-size: 12px;
}

.title {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}
</style>